<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://purl.org/kid/ns#" py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"
  py:replace="''" />
<title>${title}</title>
</head>
<body>
  <form method="post">
    <h2>Select what plugins to use</h2>
    <ol>
      <li py:for="i, plug in enumerate(plugs)" class="${i%2 and 'odd' or 'even'}">
        <input type="checkbox" id="${plug.id}_active" name="${plug.id}_active" py:if='plug.active' checked="checked" />
        <input type="checkbox" id="${plug.id}_active" name="${plug.id}_active" py:if="not plug.active" />
        ${plug.uniquename}
      </li>
    </ol>
    <input type="hidden" value="1" name="active"/>
    <button type="submit">Submit changes</button>
  </form>
  <h2>Select in what order the plugins should be run</h2>
  <ul>
    <li py:for="plugclass in plugclasses">
      <h3>${plugclass}</h3>

      <ol>
        <li py:for="i, plug in enumerate(plugsperclass[plugclass])" class="${i%2 and 'odd' or 'even'}">
          <form method="post">
            ${plug.uniquename}
            <button type="submit" value="up" name="move">Up</button>
            <button type="submit" value="down" name="move">Down</button>
            <input type="hidden" value="${plug.id}" name="plug"/>
          </form>
        </li>
      </ol>
    </li>
  </ul>
</body>
</html>
